package lrg10002.plugins.akperms.elements;

import java.util.List;
import lrg10002.plugins.akperms.ElementType;
import org.jdom2.Element;


public abstract class AKElement {
        
        public String name;
        public ElementType type;
        
        public boolean canBeChildOf(ElementType t) {
                return getParents().contains(t);
        }
        
        public abstract String[] getOptionalAttributes();
        public abstract String[] getRequiredAttributes();
        public abstract List<ElementType> getParents();
        public abstract boolean valElement(Element e);
}
